package com.seed.core.column;

import com.seed.core.enumeration.SqlOp;

import java.math.BigDecimal;

public class DecimalColumn extends Column {
    private Integer precision; // 精度(字段长度)
    private Integer scale; // 范围(小数位数)
    private BigDecimal defVal; //COLUMN_DEF 默认值
    private BigDecimal min;
    private BigDecimal max;

    @Override
    public SqlOp getDefaultOp() {
        return SqlOp.eq;
    }

    public Integer getPrecision() {
        return precision;
    }

    public void setPrecision(Integer precision) {
        this.precision = precision;
    }

    public Integer getScale() {
        return scale;
    }

    public void setScale(Integer scale) {
        this.scale = scale;
    }

    public BigDecimal getDefVal() {
        return defVal;
    }

    public void setDefVal(BigDecimal defVal) {
        this.defVal = defVal;
    }

    public BigDecimal getMin() {
        return min;
    }

    public void setMin(BigDecimal min) {
        this.min = min;
    }

    public BigDecimal getMax() {
        return max;
    }

    public void setMax(BigDecimal max) {
        this.max = max;
    }

    @Override
    public Column copy() {
        return null;
    }
}
